package com.topisv.tms.entity.sms;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.topisv.tms.entity.Customers;
import com.topisv.tms.entity.IdEntity;
import com.topisv.tms.entity.User;

/**
 * 短信申请  包含     1.开通申请   2.充值申请   3.修改节点申请
 */
@Entity
@Table(name = "sms_request")
public class SmsRequest extends IdEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private Customers customer;
	private String customerCode;
	private Integer smsCount;
	private Double smsFee;
	private String serverPoint;
	private User requestor;
	private Date requestTime;
	private User auditor;
	private Date auditTime;
	private String status;
	private String remark;
	private String requestType; //申请类型 （1. 开通申请 2.充值申请 3.修改节点申请）
	
	@ManyToOne
	@JoinColumn(name="customer_id")
	public Customers getCustomer() {
		return customer;
	}
	public void setCustomer(Customers customer) {
		this.customer = customer;
	}
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	public Integer getSmsCount() {
		return smsCount;
	}
	public void setSmsCount(Integer smsCount) {
		this.smsCount = smsCount;
	}
	public Double getSmsFee() {
		return smsFee;
	}
	public void setSmsFee(Double smsFee) {
		this.smsFee = smsFee;
	}
	public String getServerPoint() {
		return serverPoint;
	}
	public void setServerPoint(String serverPoint) {
		this.serverPoint = serverPoint;
	}
	
	@ManyToOne
	@JoinColumn(name="requestor_id")
	public User getRequestor() {
		return requestor;
	}
	public void setRequestor(User requestor) {
		this.requestor = requestor;
	}
	public Date getRequestTime() {
		return requestTime;
	}
	public void setRequestTime(Date requestTime) {
		this.requestTime = requestTime;
	}
	
	@ManyToOne
	@JoinColumn(name="auditor_id")
	public User getAuditor() {
		return auditor;
	}
	public void setAuditor(User auditor) {
		this.auditor = auditor;
	}
	public Date getAuditTime() {
		return auditTime;
	}
	public void setAuditTime(Date auditTime) {
		this.auditTime = auditTime;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getRequestType() {
		return requestType;
	}
	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}
	
}